package com.springboot.config.tool;

/**
 * 返回给前台的成功提示
 */
public class Tip{

	protected int code;
	protected String message;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Tip(){
		this.code = 200;
		this.message = "操作成功";
	}

	public Tip(int code, String message){
		this.code = code;
		this.message = message;
	}
}
